import 'package:flutter_cache_manager/flutter_cache_manager.dart';
import 'package:uikit/utils/image_util/image_util.dart';
import 'package:uikit/utils/sp_util.dart';

_AppPlugin appPlugin = _AppPlugin();

class _AppPlugin {
  ///可用于初始化一些插件等
  Future init() async {
    //初始化图片缓存器
    ImageUtil.initCacheManager(CacheManager(Config(ImageUtil.key, maxNrOfCacheObjects: 200)));
    // 初始化SpUtil
    await SpUtil.getInstance();

    //await MMKV.initialize();
  }
}
